<template>
    <div class="login">

        <!-- <el-form ref="loginForm" :model="Admin_Login_Data" :rules="Login_Form_Rules" class="login-form">
            <h3 class="title">后台管理系统</h3>

        </el-form> -->
        <div style="position: relative;height: 30vh;width: 100%;"></div>
        <!--  底部  -->

        <el-tabs type="border-card" class="elTabls" @tab-click="handleClick" v-model="activeName" >
            <el-tab-pane name="first">
                <span slot="label" >密码登录</span>
                <LoginPassword ></LoginPassword>
            </el-tab-pane>
            <el-tab-pane name="second">
                <span slot="label" >验证码登录</span>
                <Logincode></Logincode>
            </el-tab-pane>
        </el-tabs>



        <div class="el-login-footer">
            <span>民兵管理平台</span>
        </div>
    </div>
</template>

<script>
import axios from 'axios';
import router from '@/router/index'
import LoginPassword from '@/views/LoginPassword.vue';
import Logincode from '@/views/LoginCode.vue';

export default {
    data() {
        return {
            activeName: 'first'
        };
    },
    methods: {
        handleClick(tab, event) {
           
        }
    },
    components: { LoginPassword, Logincode }
}
</script>

<style scoped >
.login {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    /*换行之后项目会根据整体布局进行调整，导致两行之间的间隙很大，所以我们还需要设置一个属性为align-content:flex-start 该样式用于让div与交叉轴的起点对齐（即顶部对齐）*/
    height: 100%;
    background: url("./../assets/images/login-background.jpeg") no-repeat;
    background-size: 100% 100% ;
    background-attachment: fixed;
    /* background-size: cover; */
    
    flex-wrap: wrap;
}

.elTabls{
    width: 25vw;
}


.el-login-footer {
    height: 10vh;
    line-height: 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: Arial;
    font-size: 12px;
    letter-spacing: 1px;
}
</style>
